home *** CD-ROM | disk | FTP | other *** search
/ Chip 2006 June (Extra) / CHIP 2006-06.3.iso / program / opensource / clamav-devel.exe / contrib / Windows / progress.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-16  |  1.7 KB  |  68 lines

  1. // progress.h : header file
  2. //
  3.  
  4. /*
  5.  *  Copyright (C) 2004 Nigel Horne <njh@bandsman.co.uk>
  6.  *
  7.  *  This program is free software; you can redistribute it and/or modify
  8.  *  it under the terms of the GNU General Public License as published by
  9.  *  the Free Software Foundation; either version 2 of the License, or
  10.  *  (at your option) any later version.
  11.  *
  12.  *  This program is distributed in the hope that it will be useful,
  13.  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15.  *  GNU General Public License for more details.
  16.  *
  17.  *  You should have received a copy of the GNU General Public License
  18.  *  along with this program; if not, write to the Free Software
  19.  *  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  20.  *  MA 02110-1301, USA.
  21.  */
  22. /////////////////////////////////////////////////////////////////////////////
  23. // CProgress dialog
  24.  
  25. #ifndef    _PROGRESS_H
  26.  
  27. class CProgress : public CDialog
  28. {
  29. // Construction
  30. public:
  31.     CProgress(CWnd* pParent = NULL);
  32.  
  33.     void    SetFilename(const CString& filename);
  34.     const    BOOL IsStopPressed(void);
  35.     void    SetPercent(int percent);
  36.  
  37. // Dialog Data
  38.     //{{AFX_DATA(CProgress)
  39.     enum { IDD = IDD_PROGRESS };
  40.     CString    m_filename;
  41.     CString    m_percent;
  42.     //}}AFX_DATA
  43.  
  44.  
  45. // Overrides
  46.     // ClassWizard generated virtual function overrides
  47.     //{{AFX_VIRTUAL(CProgress)
  48.     protected:
  49.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  50.     //}}AFX_VIRTUAL
  51.  
  52. // Implementation
  53. protected:
  54.  
  55.     // Generated message map functions
  56.     //{{AFX_MSG(CProgress)
  57.     afx_msg void OnStop();
  58.     //}}AFX_MSG
  59.     DECLARE_MESSAGE_MAP()
  60.  
  61. private:
  62.     BOOL    stopPressed;
  63.     int        percent;
  64. };
  65.  
  66. #define    _PROGRESS_H
  67. #endif    _PROGRESS_H
  68.